package cn.iocoder.yudao.module.wine.controller.app.memberdeadline.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Schema(description = "管理后台 - 会员期限新增/修改 Request VO")
@Data
public class AppMemberDeadlineSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4037")
    private Long id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20707")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "开通时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "开通时间不能为空")
    private LocalDate startDate;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "结束时间不能为空")
    private LocalDate endDate;

    @Schema(description = "会员类型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "13163")
    @NotNull(message = "会员类型id不能为空")
    private Long memberTypeId;
}
